﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using SharedLib.WinFormMVCFramework;
using Tracy.DataModel;
using SharedLib;

namespace TracyGUI.View
{
    interface IEntryListView : IFormView
    {
        void LoadEntry(Entry entry);
        void ClearEntries();
        void RefreshEntry(Entry entry);
        void UnloadEntry(Entry entry);
        void SelectEntry(Entry entry);

        void FocusOnSearchTextBox();

        event EventHandler<GenericEventArgs<Entry>> EntrySelected;
        event EventHandler<GenericEventArgs<Entry>> OpenEntryInNewTab;
        event EventHandler AllEntriesClicked;
        event EventHandler CreateEntryClicked;
        event EventHandler<GenericEventArgs<Entry>> EditEntryClicked;
        event EventHandler<GenericEventArgs<Entry>> RemoveEntryClicked;
        event EventHandler<GenericEventArgs<string>> Search;
    }
}
